home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
pathchk.z
/
pathchk
Wrap
Text File
|
1998-10-20
|
4KB
|
133 lines
PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111)))) PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))
NNNNAAAAMMMMEEEE
pathchk - check pathnames
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ppppaaaatttthhhhcccchhhhkkkk [[[[----pppp ppppaaaatttthhhh]]]] _p_a_t_h_n_a_m_e...
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_p_a_t_h_c_h_k checks that one or more pathnames are valid (that is, they could
be used to access or create a file without causing syntax errors) and
portable (that is, no filename truncation will result). More extensive
portability checks are provided by the _----_pppp option.
By default, the _p_a_t_h_c_h_k utility will check each component of each
_p_a_t_h_n_a_m_e operand based on the underlying file system. A diagnostic will
be written for each _p_a_t_h_n_a_m_e operand that:
+o is longer than _P_A_T_H__M_A_X bytes
+o contains any component longer than _N_A_M_E__M_A_X bytes in its
containing directory
+o contains any in a directory that is not searchable
+o contains any character in any component that is not valid in its
containing directory.
The _----_pppp option will cause checks to be done on each _p_a_t_h_n_a_m_e operand and a
diagnostic message to be written if each of the _p_a_t_h_n_a_m_e operands:
+o is longer than __P_O_S_I_X__P_A_T_H__M_A_X bytes
+o contains any component longer than __P_O_S_I_X__P_A_T_H__M_A_X bytes
+o contains any character in any comonent that is not in the portable
filename character set.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
_pppp_aaaa_tttt_hhhh_cccc_hhhh_kkkk exits with a status of greater than 0 if any errors are
encountered, otherwise it exits with status 0.
If the _p_a_t_h_n_a_m_e argument contains a name that doesn't exist, then this is
not considered an error as long as a file could be created with this
name.
PPPPaaaaggggeeee 1111
PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111)))) PPPPAAAATTTTHHHHCCCCHHHHKKKK((((1111))))
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
To verify that all pathnames in an imported data interchange archive are
legitimate and unambiguous on the current system:
_pppp_aaaa_xxxx _----_ffff _aaaa_rrrr_cccc_hhhh_iiii_vvvv_eeee _|||| _ssss_eeee_dddd _----_eeee _''''_//// _====_==== _...._****_////_ssss_////_////_////_'''' _|||| _xxxx_aaaa_rrrr_gggg_ssss _pppp_aaaa_tttt_hhhh_cccc_hhhh_kkkk
_iiii_ffff _[[[[ _$$$$_???? _----_eeee_qqqq _0000 _]]]]
_tttt_hhhh_eeee_nnnn
_pppp_aaaa_xxxx _----_rrrr _----_ffff _aaaa_rrrr_cccc_hhhh_iiii_vvvv_eeee
_eeee_llll_ssss_eeee
_eeee_cccc_hhhh_oooo _IIII_nnnn_vvvv_eeee_ssss_tttt_iiii_gggg_aaaa_tttt_eeee _pppp_rrrr_oooo_bbbb_llll_eeee_mmmm_ssss _bbbb_eeee_ffff_oooo_rrrr_eeee _iiii_mmmm_pppp_oooo_rrrr_tttt_iiii_nnnn_gggg _ffff_iiii_llll_eeee_ssss_....
_eeee_xxxx_iiii_tttt _1111
_ffff_iiii
SSSSEEEEEEEE AAAALLLLSSSSOOOO
test(1), limits(4)
PPPPaaaaggggeeee 2222